package chapter03;

import chapter02.MyUtil;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class input02 {
    int r[][];
    public void input03(){
        FileInputStream fileInputStream = null;
        try {
            fileInputStream = new FileInputStream("C:\\Users\\levovo\\Desktop\\算法实验2\\boat1.txt");
        } catch (FileNotFoundException e) {

            e.printStackTrace();
        }
        Scanner scanner =new Scanner(fileInputStream);
        int n=scanner.nextInt();
        r=new int[n][n];
        for (int i = 0; i < n-1; i++) {
            for (int j = i+1; j <n; j++) {
                r[i][j]=scanner.nextInt();
            }

        }
        MyUtil.printM(r, 0, 5);
    }

    public static void main(String[] args) {
        input02 input02 = new input02();
        input02.input03();
    }



}
